package com.cxf.windex.enums;

/**
 * @program: business_needs
 * @description: 活动类型
 * @author: chenxf
 * @create: 2018-10-29 10:18
 **/
public enum ActivityEnum {
  //RECHARGE("0", "充值"),
  CERT("1", "认证");

  private final String key;
  private final String desc;

  private ActivityEnum(String key, String desc) {
    this.key = key;
    this.desc = desc;
  }

  public static ActivityEnum getIdType(String idType) {
    ActivityEnum[] its = values();
    ActivityEnum[] arr$ = its;
    int len$ = its.length;

    for(int i$ = 0; i$ < len$; ++i$) {
      ActivityEnum it = arr$[i$];
      if (it.getKey() .equals( idType)) {
        return it;
      }
    }

    return CERT;
  }

  public String getKey() {
    return this.key;
  }

  public String getDesc() {
    return this.desc;
  }

}
